﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Clauses
{
    public class Set
        : Expression
    {
        public Set(IList<ColumnAssignment> assignments)
            : base("SET", ",", string.Empty)
        {
            AddChildren<ColumnAssignment>(assignments);
        }

        public Set Assign(IColumnName column, IValue value)
        {
            AddChild(new ColumnAssignment(column, value));
            return this;
        }
    }
}
